home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / grafik / bildanzeiger / superview-lib_dev / example_svdrivers / ecs / svdriver.h < prev   
C/C++ Source or Header  |  1995-03-09  |  4KB  |  127 lines

  1.  
  2.  /* svdriver.h
  3.     - Include File for ECS.svdriver -
  4.     (c) 1990-94 by Andreas R. Kleinert
  5.     Last changes : 07.05.1994
  6.  */
  7.  
  8. #ifndef SVDRIVER_H
  9. #define SVDRIVER_H
  10.  
  11. #ifndef SUPERVIEW_SUPERVIEWBASE_H
  12. #include <superview/superviewbase.h>
  13. #endif  /* SUPERVIEW_SUPERVIEWBASE_H */
  14.  
  15. #ifndef SVDRIVERS_SVDRIVERBASE_H
  16. #include <svdrivers/svdriverbase.h>
  17. #endif  /* SVDRIVERS_SVDRIVERBASE_H
  18.  
  19. #ifndef INTUITION_INTUITIONBASE_H
  20. #include <intuition/intuitionbase.h>
  21. #endif /* INTUITION_INTUITIONBASE_H */
  22.  
  23. #ifndef EXEC_MEMORY_H
  24. #include <exec/memory.h>
  25. #endif /* EXEC_MEMORY_H */
  26.  
  27. #ifndef EXEC_LISTS_H
  28. #include <exec/lists.h>
  29. #endif /* EXEC_LISTS_H */
  30.  
  31. #ifndef EXEC_INTERRUPTS_H
  32. #include <exec/interrupts.h>
  33. #endif /* EXEC_INTERRUPTS_H */
  34.  
  35. #ifndef GRAPHICS_GFXBASE_H
  36. #include <graphics/gfxbase.h>
  37. #endif /* GRAPHICS_GFXBASE_H */
  38.  
  39. #ifndef GRAPHICS_VIEW_H
  40. #include <graphics/view.h>
  41. #endif /* GRAPHICS_VIEW_H */
  42.  
  43. #ifndef LIBRARIES_IFFPARSE_H
  44. #include <libraries/iffparse.h>
  45. #endif /* LIBRARIES_IFFPARSE_H */
  46.  
  47. #include <proto/exec.h>
  48. #include <proto/dos.h>
  49. #include <proto/intuition.h>
  50. #include <proto/graphics.h>
  51. #include <proto/superviewsupport.h>
  52.  
  53. #include "ecs.h"
  54.  
  55.  
  56. /* *************************************************** */
  57. /* *                             * */
  58. /* * SD_SuperVisor.c : Functions                 * */
  59. /* *                             * */
  60. /* *************************************************** */
  61.  
  62. extern struct SVDriverHandle * __saveds __asm SVD_AllocHandle( register __a1 APTR future_a1);
  63. extern void __saveds __asm SVD_FreeHandle( register __a1 struct SVDriverHandle *SVDriverHandle_a1);
  64. extern void __saveds __asm SVD_CloseDisplay( register __a1 struct SVDriverHandle *SVDriverHandle_a1);
  65. extern void __saveds __asm SVD_FreeResources( register __a1 struct SVDriverHandle *SVDriverHandle_a1);
  66.  
  67.  
  68. /* *************************************************** */
  69. /* *                             * */
  70. /* * SD_ChangeSubs.c : ...                           * */
  71. /* *                             * */
  72. /* *************************************************** */
  73.  
  74. extern ULONG __saveds __asm SVD_SetScreenType( register __a1 struct SVDriverHandle *SVDriverHandle_a1, register __d1 ULONG type, register __a2 APTR future);
  75. extern ULONG __saveds __asm SVD_SetWindowFlags( register __a1 struct SVDriverHandle *SVDriverHandle_a1, register __d1 ULONG flags, register __a2 APTR future);
  76. extern ULONG __saveds __asm SVD_SetWindowIDCMP( register __a1 struct SVDriverHandle *SVDriverHandle_a1, register __d1 ULONG idcmp, register __a2 APTR future);
  77. extern struct Screen * __saveds __asm SVD_GetScreenAddress( register __a1 struct SVDriverHandle *SVDriverHandle_a1, register __a2 APTR future);
  78. extern struct Window * __saveds __asm SVD_GetWindowAddress( register __a1 struct SVDriverHandle *SVDriverHandle_a1, register __a2 APTR future);
  79.  
  80.  
  81. /* *************************************************** */
  82. /* *                             * */
  83. /* * SD_BufferSubs.c : ...                           * */
  84. /* *                             * */
  85. /* *************************************************** */
  86.  
  87. extern ULONG __saveds __asm SVD_SetGfxBuffer(      register __a1 struct SVDriverHandle *SVDriverHandle_a1, register __a2 struct SV_GfxBuffer *buffer, register __a3 ULONG future);
  88. extern ULONG __saveds __asm SVD_DisplayGfxBuffer(  register __a1 struct SVDriverHandle *SVDriverHandle_a1, register __a2 ULONG future);
  89.  
  90.  
  91. /* *************************************************** */
  92. /* *                             * */
  93. /* * Additional Base Declarations             * */
  94. /* *                             * */
  95. /* *************************************************** */
  96.  
  97. extern struct SVDriverBase  *SVDriverBase;
  98.  
  99. extern struct ExecBase        *SysBase;
  100. extern struct DosLibrary    *DOSBase;
  101. extern struct IntuitionBase *IntuitionBase;
  102. extern struct GfxBase        *GfxBase;
  103. extern struct SVSupportBase *SVSupportBase;
  104.  
  105. struct SVDriverHandle                   /* STRICTLY PRIVATE */
  106. {
  107.  BPTR                 ah_filehandle_source;
  108.  BPTR                 ah_filehandle_dest;
  109.  
  110.  struct Screen       *ah_Screen;
  111.  struct Window       *ah_Window;
  112.  
  113.  ULONG                ah_ScreenType;
  114.  ULONG                ah_WindowFlags;
  115.  ULONG                ah_WindowIDCMP;
  116.  
  117.  struct Screen       *ah_WriteScreen;
  118.  struct Window       *ah_WriteWindow;
  119.  char                *ah_WriteName;
  120.  
  121.  APTR                 ah_ramhandle;
  122.  
  123.  struct SV_GfxBuffer *ah_SV_GfxBuffer;
  124. };
  125.  
  126. #endif /* SVDRIVER_H */
  127.